package lines.gameengine.util;

/**
 * @author vpotapenko
 */
public class DefaultScoreHolder implements IScoreHolder {

    private int score;

    @Override
    public int getScore() {
        return score;
    }

    @Override
    public void reset() {
        score = 0;
    }

    @Override
    public void dispatchClearBalls(int ballsNumber) {
        if (ballsNumber > 0) score += ballsNumber;
    }
}
